:: 1.官网注册账号 https://cr.console.aliyun.com/
:: 2.创建一个镜像库lishuoboy-docker1。见图：8.2.1、8.2.2
::   阿里参考文档、见图：8.2.3
:: 3.设置仓库密码。见图：8.3
:: 4.【登录仓库】登录到一个Docker镜像仓库。如果未指定镜像仓库地址，默认为官方仓库 Docker Hub。此处指定阿里云 registry.cn-beijing.aliyuncs.com
:: docker login [OPTIONS] [SERVER]
:: docker logout [OPTIONS] [SERVER]
docker login --username=25135394@qq.com registry.cn-beijing.aliyuncs.com
:: 5.【标记本地镜像】，将其归入某一仓库。字必须跟你注册账号一样。见图：8.5
:: docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]
docker tag lishuoboy-docker1:0.0.1 registry.cn-beijing.aliyuncs.com/lishuoboy/lishuoboy-docker1:0.0.1
:: 6.【上传镜像】将本地的镜像上传到镜像仓库,要先登陆到镜像仓库。见图：8.6
:: docker push [OPTIONS] NAME[:TAG]
docker push registry.cn-beijing.aliyuncs.com/lishuoboy/lishuoboy-docker1:0.0.1
:: 7.部署试试(先删除本地镜像)
docker run -dp 8080:8080 --name lishuoboy-docker1 --network lishuoboy-docker registry.cn-beijing.aliyuncs.com/lishuoboy/lishuoboy-docker1:0.0.1
